//
//  JPFCheckboxButton.h
//  JPFUI
//
//  Created by JPFei on 2019/3/16.
//  Copyright © 2019 nmo. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface JPFCheckboxButton : UIButton

@property (nonatomic, strong) NSObject *userData;
@property (nonatomic, weak) IBOutlet UILabel *lab;
@property (nonatomic, weak) IBOutlet UIImageView *igv;
@property (nonatomic, copy) IBInspectable UIImage *imgChecked;
@property (nonatomic, copy) IBInspectable UIImage *imgUnChecke;
@property (nonatomic, copy) void (^checkedBlock)(BOOL isCheched);

- (void)setCheckImage:(UIImage *)checkImage unCheckImage:(UIImage *)unCheckImage;
- (void)setCheckBackgroundColor:(UIColor *)checkBgColor unCheckBackgroundColor:(UIColor *)unCheckBgColor;
- (void)setCheckTitleColor:(UIColor *)checkTitleColor unCheckTitleColor:(UIColor *)unCheckTitleColor;

- (void)refreshViews;

@end

NS_ASSUME_NONNULL_END
